package com.pmcc.platform.salesman.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pmcc.core.entity.BaseEntity;
import lombok.Data;
import org.springframework.aop.target.LazyInitTargetSource;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * @program: basePlatform
 * @description: 推广员
 * @author: Mr.Xue
 * @create: 2020-04-23 11:55
 **/
@Data
@Entity
@Table(name = "bp_saleman")
@org.hibernate.annotations.Table(appliesTo = "bp_saleman",comment="推广员信息表")
public class Salesman extends BaseEntity {

    @Column(columnDefinition = "varchar(50) COMMENT '姓名'")
    private String name;//姓名

    @Column(columnDefinition = "varchar(20) COMMENT '手机号'")
    private String phone;//手机号

    @Column(columnDefinition = "varchar(10) COMMENT '状态(0：禁用，1：启用 ，2：待审核）'")
    private String status;//状态(0：禁用，1：启用，2：待审核）

    @Column(columnDefinition = "varchar(50) COMMENT '上级机构Id'")
    private String organizationId;//上级机构Id

    @Column(columnDefinition = "varchar(255) COMMENT '小程序用户id'")
    private String minSalesmanUserId;

    @Column(name = "LAST_TIME")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp lastTime;//最后一次登录时间


    @Transient
    private  String organizationName; //机构名称

    @Transient
    private  int getNum;  //发放数量









}
